import * as types from './mutation-type.js';

export default {
    [types.SET_USER_INFO](state, name) {
        state.userInfo = name;
    },
    [types.UPDATE_ISCHECKTOKEN](state, name) {
        state.isCheckToken = name;
    },
    [types.SET_APIHOST](state, name) {
        state.apiHost = name;
    },
    [types.SET_LEFTMENUNAV](state, name) {
        state.leftMenuNav = name;
    },
    [types.SET_USERINFO](state, name) {
        state.userInfo = name;
    },

    [types.SET_NAME](state, name) {
        state.name = name;
    },
    [types.SET_AGE](state, age) {
        state.age = age;
    },
    [types.SET_SEND_USERINFO](state, send_userinfo) {
        state.send_userinfo = send_userinfo;
    },
    [types.SET_PERSONL](state, personl) {
        state.personl = personl;
    },
    [types.SET_NEWBADGE](state, newBadge) {
        state.newBadge = newBadge;
    },
    [types.SET_NCHANGEDATA](state, changData) {
        state.changData = changData;
    },
    [types.SET_NBADGE](state, badge) {
        state.badge = badge;
    },
    [types.SET_NBADGE](state, flag) {
        state.badge = flag;
    },
    [types.SET_GRADEID](state, flag) {
        state.gradeid = flag;
    },
    [types.SET_ISSCHOOL](state, flag) {
        state.isSchool = flag;
    },
    [types.SET_ISCHECKLEVEL](state, flag) {
        state.isCheckLevel = flag;
    },

};